<?php
class RedirectAction extends Action {
	
    public function index(){
    	
    	$msg = $this->_get("msg");
		$url = $this->_get("url");
		
		if(empty($msg)){	//直接跳转
			header('HTTP/1.1 301 Moved Permanently');
    		header('Location: '.$url);
		}else{
			$this->assign("msg",$msg);
			$this->assign("url",$url);
			$this->display();
		}
    	
    }
    
}